/*
 * Copyright (c) 2023, 2023,yzc.cn All rights reserved.
 *
 */
package cn.yzc.mapper;

import cn.yzc.pojo.Client;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>Project: mybatis_pro - ClientMapper</p>
 * <p>Powered by yzc On 2023-10-12 16:33:23</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */
public interface ClientMapper {

    /**
     * 添加客户信息
     *
     * @param client
     * @return
     */
    int insertClient(Client client);

    int updateClient(Client client);

    Client queryClient(int id);

    int delClient(@Param("ids") int[] ids);


    @Select("select * from client limit #{offset} ,#{pageSize}")
    List<Client> queryPage(@Param("offset") int offset, @Param("pageSize") int pageSize);
}
